package com.chat.login.domain.dto;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CheckMailDTO {
    @NotNull(message = "账号不能为空")
    String account;
    @NotBlank(message = "邮箱不能为空")
    @Email(message = "邮箱格式错误")
    String email;
}
